<h1>Listing users</h1>

<table>
  <tr>
    <th>Login</th>
    <th>Email</th>
    <th>Crypted password</th>
    <th>Password salt</th>
    <th>Persistence token</th>
    <th>Single access token</th>
    <th>Perishable token</th>
    <th>Login count</th>
    <th>Failed login count</th>
    <th>Last request at</th>
    <th>Current login at</th>
    <th>Last login at</th>
    <th>Current login ip</th>
    <th>Last login ip</th>
  </tr>

<% @users.each do |user| %>
  <tr>
    <td><%=h user.login %></td>
    <td><%=h user.email %></td>
    <td><%=h user.crypted_password %></td>
    <td><%=h user.password_salt %></td>
    <td><%=h user.persistence_token %></td>
    <td><%=h user.single_access_token %></td>
    <td><%=h user.perishable_token %></td>
    <td><%=h user.login_count %></td>
    <td><%=h user.failed_login_count %></td>
    <td><%=h user.last_request_at %></td>
    <td><%=h user.current_login_at %></td>
    <td><%=h user.last_login_at %></td>
    <td><%=h user.current_login_ip %></td>
    <td><%=h user.last_login_ip %></td>
    <td><%= link_to 'Show', user %></td>
    <td><%= link_to 'Edit', edit_user_path(user) %></td>
    <td><%= link_to 'Destroy', user, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New user', new_user_path %>